package com.sdweizan.sdk.bytedance.bean.settle;

import com.alibaba.fastjson.annotation.JSONField;
import com.sdweizan.sdk.bytedance.bean.BdBaseRequest;
import com.sdweizan.sdk.bytedance.constants.BdConstants;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BdUnsettleAmountRequest implements BdBaseRequest {
  // 商户侧支付单号
  @JSONField(name = "out_order_no")
  private String outOrderNo;

  @JSONField(name = "app_id")
  private String appId;

  @JSONField(name = "sign")
  private String sign;
  // 商户侧支付子单单号
  @JSONField(name = "out_item_order_no")
  private String outItemOrderNo;
  // 第三方平台服务商 id，服务商模式接入必传，非服务商模式留空
  @JSONField(name = "thirdparty_id")
  private String thirdpartyId;

  @Override
  public String requestUri() {
    return BdConstants.API_HOST + "/api/apps/ecpay/v1/unsettle_amount";
  }
}
